home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
elk-2_0.lha
/
elk-2.0
/
lib
/
misc
/
build
next >
Wrap
Text File
|
1992-11-02
|
1KB
|
88 lines
. ../../config/system
. ../../config/site
if [ _$gdbm = _yes ]; then
gdbm_c="gdbm.c"
gdbm_o="gdbm.o"
gdbm_rule="gdbm.o: \$(H) ../util/symbol.h gdbm.c"
fi
if [ _$load_obj != _ ]; then
linkext="../../scripts/linkext.$load_obj \$@ \$@"
fi
echo Building Makefile.local...
cat <<EOT >Makefile.local
# This Makefile was produced by running ./build in this directory.
SHELL=/bin/sh
CC= ${cc-cc}
CFLAGS= $cflags $obj_cflags
LINTFLAGS= $lintflags
INC= ../../include
H= \$(INC)/config.h\\
\$(INC)/param.h\\
\$(INC)/object.h\\
\$(INC)/extern.h\\
\$(INC)/misc.h\\
\$(INC)/stkmem.h\\
\$(INC)/cstring.h
C= c++.c\\
chdir.c\\
debug.c\\
hack.c\\
hunk.c\\
monitor.c\\
struct.c\\
unix.c $gdbm_c
O= c++.o\\
chdir.o\\
debug.o\\
hack.o\\
hunk.o\\
monitor.o\\
struct.o\\
unix.o $gdbm_o
.c.o:
\$(CC) \$(CFLAGS) -I\$(INC) $gdbm_incl -c \$<
$linkext
all: \$(O)
c++.o: \$(H) c++.c
chdir.o: \$(H) chdir.c
debug.o: \$(H) debug.c
hack.o: \$(H) hack.c
hunk.o: \$(H) hunk.c
monitor.o: \$(H) monitor.c
struct.o: \$(H) struct.c
unix.o: \$(H) unix.c
$gdbm_rule
install: \$(O)
-@if [ ! -d $lib_dir ]; then \\
echo mkdir $lib_dir; \\
mkdir $lib_dir; \\
fi
@for i in \$(O) ;\\
do \\
echo cp \$\$i $lib_dir; \\
cp \$\$i $lib_dir; \\
done
lint:
lint \$(LINTFLAGS) -I\$(INC) $gdbm_incl \$(C)
clean:
rm -f *.o core
distclean:
rm -f *.o core lint.out Makefile.local
EOT